package com.ztgf.shopping.api.cms.shop;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.ztgf.common.constant.Result;
import com.ztgf.common.enums.CodeEnum;
import com.ztgf.common.utils.StrUtils;
import com.ztgf.shopping.models.vo.shop.ShopSalesAreaVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.beans.BeanUtils;
import org.springframework.web.bind.annotation.*;
import java.util.Arrays;
import java.util.List;
import com.ztgf.shopping.models.service.shop.IShopSalesAreaService;
import com.ztgf.shopping.models.bo.shop.ShopSalesAreaSaveBO;
import com.ztgf.shopping.models.bo.shop.ShopSalesAreaBO;
import com.ztgf.shopping.models.dto.shop.ShopSalesAreaDTO;

/**
 * 店铺可售区域表控制器
 *
 * @author zhanghualang
 * @Date 2020-05-27 15:21:49
 */

@RestController
@RequestMapping("/cms/shopSalesArea")
@Slf4j
@Api(value = "ShopSalesAreaController",tags = "店铺可售区域表接口")
public class ShopSalesAreaController {

    @DubboReference
    private IShopSalesAreaService shopSalesAreaService;

    @ApiOperation(value = "店铺可售区域表列表",notes = "店铺可售区域表列表")
    @PostMapping("/queryList")
    public Result<List<ShopSalesAreaVO>> queryList(ShopSalesAreaBO bo){

        List<ShopSalesAreaVO> shopSalesAreaVOS = shopSalesAreaService.queryList(bo);

        return new Result<>(shopSalesAreaVOS);
    }
}
